package com.jianyun.jyzs.bean;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

import java.io.Serializable;
import java.util.List;

/**
 * Created by mlli on 2017/11/3.
 */

public class EngineerProjectResult extends Response{

    @Override
    public String toString() {
        return "EngineerProjectResult{" +
                "result=" + result +
                ", totalIndex=" + totalIndex +
                ", pageIndex=" + pageIndex +
                ", message='" + message + '\'' +
                ", list=" + list +
                '}';
    }

    private boolean result;
    private int totalIndex;
    private int pageIndex;
    private String message;
    private List<EngProject> list;

    public boolean isResult() {
        return result;
    }

    public void setResult(boolean result) {
        this.result = result;
    }

    public int getTotalIndex() {
        return totalIndex;
    }

    public void setTotalIndex(int totalIndex) {
        this.totalIndex = totalIndex;
    }

    public int getPageIndex() {
        return pageIndex;
    }

    public void setPageIndex(int pageIndex) {
        this.pageIndex = pageIndex;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public List<EngProject> getList() {
        return list;
    }

    public void setList(List<EngProject> list) {
        this.list = list;
    }

    @DatabaseTable
    public static class EngProject implements Serializable{
        @Override
        public String toString() {
            return "EngProject{" +
                    "State=" + State +
                    ", CreateUser='" + CreateUser + '\'' +
                    ", ProJectName='" + ProJectName + '\'' +
                    ", rowNum=" + rowNum +
                    ", CreateUserId='" + CreateUserId + '\'' +
                    ", BeginTime='" + BeginTime + '\'' +
                    ", ProJectAddress='" + ProJectAddress + '\'' +
                    ", EndTime='" + EndTime + '\'' +
                    ", Note='" + Note + '\'' +
                    ", EnterpriseCode='" + EnterpriseCode + '\'' +
                    ", AutoId=" + AutoId +
                    ", CreateTime='" + CreateTime + '\'' +
                    ", EnterpriseName='" + EnterpriseName + '\'' +
                    '}';
        }

        @DatabaseField
        private int State;
        @DatabaseField
        private String CreateUser;
        @DatabaseField
        private String ProJectName;
        @DatabaseField
        private int rowNum;
        @DatabaseField
        private String CreateUserId;
        @DatabaseField
        private String BeginTime;
        @DatabaseField
        private String ProJectAddress;
        @DatabaseField
        private String EndTime;
        @DatabaseField
        private String Note;
        @DatabaseField
        private String EnterpriseCode;
        @DatabaseField(id = true)
        private int AutoId;
        @DatabaseField
        private String CreateTime;
        @DatabaseField
        private String EnterpriseName;
        @DatabaseField
        private int count = 0;//选择次数
        @DatabaseField
        private boolean all;

        public boolean isAll() {
            return all;
        }

        public void setAll(boolean all) {
            this.all = all;
        }

        public int getCount() {
            return count;
        }

        public void setCount(int count) {
            this.count = count;
        }

        public int getState() {
            return State;
        }

        public void setState(int State) {
            this.State = State;
        }

        public String getCreateUser() {
            return CreateUser;
        }

        public void setCreateUser(String CreateUser) {
            this.CreateUser = CreateUser;
        }

        public String getProJectName() {
            return ProJectName;
        }

        public void setProJectName(String ProJectName) {
            this.ProJectName = ProJectName;
        }

        public int getRowNum() {
            return rowNum;
        }

        public void setRowNum(int rowNum) {
            this.rowNum = rowNum;
        }

        public String getCreateUserId() {
            return CreateUserId;
        }

        public void setCreateUserId(String CreateUserId) {
            this.CreateUserId = CreateUserId;
        }

        public String getBeginTime() {
            return BeginTime;
        }

        public void setBeginTime(String BeginTime) {
            this.BeginTime = BeginTime;
        }

        public String getProJectAddress() {
            return ProJectAddress;
        }

        public void setProJectAddress(String ProJectAddress) {
            this.ProJectAddress = ProJectAddress;
        }

        public String getEndTime() {
            return EndTime;
        }

        public void setEndTime(String EndTime) {
            this.EndTime = EndTime;
        }

        public String getNote() {
            return Note;
        }

        public void setNote(String Note) {
            this.Note = Note;
        }

        public String getEnterpriseCode() {
            return EnterpriseCode;
        }

        public void setEnterpriseCode(String EnterpriseCode) {
            this.EnterpriseCode = EnterpriseCode;
        }

        public int getAutoId() {
            return AutoId;
        }

        public void setAutoId(int AutoId) {
            this.AutoId = AutoId;
        }

        public String getCreateTime() {
            return CreateTime;
        }

        public void setCreateTime(String CreateTime) {
            this.CreateTime = CreateTime;
        }

        public String getEnterpriseName() {
            return EnterpriseName;
        }

        public void setEnterpriseName(String EnterpriseName) {
            this.EnterpriseName = EnterpriseName;
        }
    }
}
